let fun={
    queryPlayerList:(pageNum)=>{
        let nickname=document.getElementById("nickname").value;
        fetch(window.server_path+window.server_post.queryPlayerList,{
            method:"POST",
            headers:{"Content-Type":"application/json"},
            body:JSON.stringify({
                data:JSON.stringify({
                    phone:window.sessionStorage.getItem("phone"),
                    command:window.localStorage.getItem("command"),
                    nickname:nickname,
                    nowPageNum:pageNum
                })
            })
        }).then(re=>{return re.json()}).then(da=>{
            if(!da.status)return;
            let das=[];
            for(let i=0;i<da.data.length;i++){
                let daa=[da.data[i].uid,da.data[i].nickname,da.data[i].gender===0?"女":(da.data[i].gender===-1?"未知":"男")];
                let lock=document.createElement("button");
                lock.innerHTML="锁定";
                lock.onclick=e=>{}
                daa[3]=lock;
                let give=document.createElement("button");
                give.innerHTML="赠送";
                give.onclick=e=>{

                }
                daa[4]=give;
                das[das.length]=daa;
            }
            ftable.setData("table",das);
            ftable.setPages("tfoot",da.allPageNum,da.nowPageNum,fun.queryPlayerList);
        })
    }
}
fun.queryPlayerList(1);